#include "imagedisplayer.h"

ImageDisplayer::ImageDisplayer()
{
}

void ImageDisplayer::resizeEvent(QResizeEvent * event) {
    if(pixmap()&&!pixmap()->isNull()) {
        setPixmap(QPixmap::fromImage(pixmap()->toImage().scaled(event->size(),Qt::KeepAspectRatio,Qt::SmoothTransformation)));
    }
}
